<script>
	$(document).ready(function(){
		
		$('#kd_pt').change(function(){
			$('#kd_fakultas').load(base_url+'prosedur/getFakultasbyUniversitas/'+$('#kd_pt').val());
		});
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
	});
</script>
<form id="form1" method="post" style="margin:10px;">
	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:100px">Kode Jenis Matakuliah </label>:
		<input name="kd_jenismk" size="10" required="true" value="<?=$kd_jenismk?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Universitas </label>:
		<select id="kd_pt" name="kd_pt" style="width:200px;">
			<?=$this->mdl_prosedur->OptionUniversitas();?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px;">Fakultas </label>
			<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
					<?=$this->mdl_prosedur->OptionFakultasByUniv(array('value'=>$kd_fakultas, 'kd_pt'=>$kd_pt));?>
			</select>				
	</div>	
	<div class="fitem">
		<label style="width:100px">Prodi  </label>:
		<select id="kd_prodi" name="kd_prodi" style="width:290px;">
				<?=$this->mdl_prosedur->OptionProdi(array('value'=>$kd_prodi, 'kd_fakultas'=>$kd_fakultas));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Urutan </label>:
		<input name="Urutan" size="20" required="true" value="<?=$Urutan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Singkatan </label>:
		<input name="Singkatan" size="20" required="true" value="<?=$Singkatan?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama Jenis MK </label>:
		<input name="Nama" size="30" required="true" value="<?=$Nama?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Status</label>:		
		<input type="checkbox" name="status" <?=$status=='A'?'checked':''?>/> Aktif
	</div>
</form>
	

